import Types from '../actionTypes';
import {toLogin} from '../../api';

const getLoginInfor = (username, pwd) => {
  return new Promise((resolve, reject) => {
    toLogin(username, pwd).then(res => {
      resolve({
        type: Types.LOGIN,
        data: res,
      });
    });
  });
};
export default {
  getLoginInfor,
};
